export default [
    {
        meta: { title: '用户管理', icon: 'el-icon-s-custom' },
        children: [
            {
                path: '/userList',
                name: 'userList',
                meta: { title: '用户列表', role: ['admin'] },
                component: () => import('views/user.vue'),
            },
            {
                path: '/user',
                name: 'userCreate',
                meta: { title: '新增用户', role: ['admin'] },
                component: () => import('views/user.vue'),
            },
            {
                path: '/user/:id',
                name: 'userUpdate',
                props: true,
                meta: { role: ['admin'] },
                component: () => import('views/user.vue'),
            },
        ],
    },
]
